/* 企业门户部分接口 */
import request from '@/utils/request';

export async function getDoorList() {
    return request('/api/oa/v1/protal/getlist');
}

/**
 * 最近6个月人员走势
 *
 * @export
 * @param {*} params
 * @returns
 */
export async function getAxis(params) {
    return request('/api/oa/v1/analyse/employeetrendPortal', {
        method: 'POST',
        data: params
    });
}
/**
 * 员工部门分布
 *
 * @export
 * @param {*} params
 * @returns
 */
export async function getPie(params) {
    return request('/api/oa/v1/analyse/distributionmodule', {
        method: 'POST',
        data: params
    });
}
// 经我审批流程列表
export async function getPass(params) {
    return request('/api/oa/v1/workflow/passmeprocess/getpassmeprocesslist', {
        method: 'POST',
        data: params
    });
}
// 经我阅读列表【我的抄送列表-分页
export async function getRead(params) {
    return request('/api/oa/v1/workflow/reading/getlist', {
        method: 'POST',
        data: params
    });
}
// 待我审批列表
export async function getApprove(params) {
    return request('/api/oa/v1/workflow/myapprove/getmytoapprove', {
        method: 'POST',
        data: params
    });
}
